package entity.controller;

public class ExceptionConverter {
	private final static String	DEFAULT_CODE	= "0000";
	
	public static BaseException convert(Exception e) {
		return new BaseException(e, DEFAULT_CODE);
	}
	
	public static Throwable getMasterCause(Throwable t) {
		for (; t.getCause() != null; t = t.getCause());
		return t;
	}
}
